home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / devices / modm0dev.zoo / modm0dev.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-09  |  1.9 KB  |  73 lines

  1. /*
  2.  * modm0dev.h: public definitions to use the /dev/ttyd0 and /dev/cua0
  3.  * devices. Edit them to suit your needs.
  4.  */
  5.  
  6. #ifndef _modem0_dev_h
  7. #define _modem0_dev_h
  8.  
  9. /*
  10.  * Device-specific ioctl's, NOT officially attributed. If you change these
  11.  * ones, change them in stty.c too.
  12.  */
  13. #define NON_OFFICIAL_IOCTLS
  14.  
  15. #ifdef NON_OFFICIAL_IOCTLS
  16. #define TIOCGHUPCL    (('T'<< 8) | 98)
  17. #define TIOCSHUPCL    (('T'<< 8) | 99)
  18. #define TIOCGSOFTCAR    (('T'<< 8) | 100)
  19. #define TIOCSSOFTCAR    (('T'<< 8) | 101)
  20. #endif
  21.  
  22. /*
  23.  * Names of the devices, from Sun's manpage. The dial-in device is
  24.  * sometimes named `ttyS0' instead of `ttyd0'.
  25.  */
  26.  
  27. #define MDM_DEVNAME    "U:\\dev\\ttyd0"
  28. #define CUA_DEVNAME    "U:\\dev\\cua0"
  29.  
  30. /*
  31.  * Name of the daemon, name of the device where error messages should be
  32.  * printed (unused in the syslog version).
  33.  */
  34.  
  35. #define D_NAME        "ttyd0d"
  36. #define LOGFILE        "U:\\dev\\console"
  37.  
  38. /*
  39.  * If SECURE_OPEN is defined, only root will be able to open these devices.
  40.  * This is probably a good idea since MiNT does not check (yet) device
  41.  * ownership.
  42.  *
  43.  * Defining NDEBUG will create a driver without debugging information at
  44.  * all, thus faster and smaller. Since we're in test phase, we want
  45.  * debugging.
  46.  */
  47.  
  48. #define SECURE_OPEN
  49. /*#define NDEBUG*/
  50.  
  51. /*
  52.  * Default settings are: 19200 bps, eight-bit chars, no parity, one
  53.  * stop bit, rts/cts enabled, hardware carrier control, and
  54.  * hangup on close.
  55.  */
  56.  
  57. #define INITIAL_SPEED    19200
  58. #define INITIAL_FLAGS    (TF_8BIT | TF_1STOP | T_RTSCTS)
  59. #define INITIAL_SOFTCAR    0
  60. #define INITIAL_HUPCL    1
  61.  
  62. /*
  63.  * Buffers for reception and transmission. The buffer sizes are arbitrary
  64.  * long ints; they don't need to be equal, nor powers of two, they might
  65.  * even be odd numbers. Don't set them too low, 1024L is probably
  66.  * the very minimum.
  67.  */
  68.  
  69. #define RX_BUF_LENGTH    6144L
  70. #define TX_BUF_LENGTH    6144L
  71.  
  72. #endif    /* _modem0_dev_h */
  73.